net = require 'net'
strftime = require 'strftime'
server = net.createServer (socket)->
	socket.end (strftime '%Y-%m-%d %H:%M') + '\n'
server.listen process.argv[2]
